
var width = document.documentElement.clientWidth;
var height = document.documentElement.clientHeight;
var DIV = document.querySelector(".out");
var DIV2 = document.querySelector(".top");
DIV.style.width  =  width + "px";
DIV2.style.width  =  width + "px";
DIV.style.height  =  height + "px";
window.onresize = function () {
var width = document.documentElement.clientWidth;
var height = document.documentElement.clientHeight;
var DIV = document.querySelector(".out");
var DIV2 = document.querySelector(".top");
DIV.style.width  =  width + "px";
DIV2.style.width  =  width + "px";
DIV.style.height  =  height + "px";

}
var colors = ["yellow","green","pink","cyan","blue","red","yellowgreen","greenyellow"];
var ziti  = [
"流星亮起来，不输日月"
,"不必遗憾。若是美好，叫做精彩。若是糟糕，叫做经历。"
,"生命是一种过程而不是一个目的"
,"愿你遇到的，每个人都懂你。愿每个懂你的人都珍惜你。"
,"总有一个人会把你的百炼钢化为绕指柔,教会你温柔对待这个世界。"
,"月亮和家乡哪个更远？"
,"过去，东西坏了只想修，现在，东西坏了，只想着换"
,"欢迎加入我们"
]
var b;

function Random (min,max) {
	return Math.floor(Math.random() * (max - min +  1)) + min;
}

setInterval(function() {
	a = Random(1,8);
	var p1 = document.getElementById("p");
	var p = document.getElementById("p1");
	p1.style.color = colors[a];
	p.style.color = colors[a];
},10)
function kaixue () {
	location.href = "demo02.html";
}
function kaixue1() {
	var num = document.getElementById("randomNum");
	b = Random(1000,9999);
	num.innerHTML  = b;	
}
setInterval(function() {
	var c = Random(1,7);
	var p1 = document.getElementById("p");
	p1.innerHTML = "";
	p1.innerHTML = ziti[c];

},6200);














